package com.example.doctorserver.mapper;

import com.example.doctorserver.pojo.Cidetailedreport;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.Map;

@Mapper
public interface CidetailedreportMapper {
    int deleteByPrimaryKey(Integer cidrId);

    void insert(Cidetailedreport record);

    int insertSelective(Integer cdId ,Integer orderId);

    Cidetailedreport selectByPrimaryKey(Integer ordId);

    void updateByPrimaryKeySelective(Cidetailedreport record);

    void updateByPrimaryKey(Cidetailedreport record);

    @Select("SELECT COUNT(*) FROM cidetailedreport WHERE orderId = #{orderId}")
    int getCiReportByOrderld(Integer orderId);

    int updateValue(Map<String, Object> params);

    @Select("select * from cidetailedreport where orderId = #{orderId} and cdId=#{cdId}")
    Cidetailedreport getValue(Cidetailedreport cidetailedreport);
}